export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  highlightCurrentRow:true,
  menuAlign: 'center',
  editBtn: false,
  delBtn: false,
  align: 'left',
  addBtn: false,
  height: 'auto',
  //menuWidth: 270,
  headerMenu: true,
  labelWidth: 120,
	autoLoad: true,
  column: [{
    fixed: false,
    label: 'ID',
    prop: 'id',
    span: 24,
    width: 150,
    hide: false,
    editDisabled: false,
    addDisplay: true
  }, {
    fixed: false,
    label: '名称',
    prop: 'title',
    width: 150,
    editDisabled: false,
    search: true,
    span: 24,
  }, {
    fixed: false,
    label: '系统',
    prop: 'system',
    type: 'switch',
    width: 90,
    editDisabled: true,
    search: false,
    formatter: function(row, column, cellValue, index){return cellValue?'是':'否'},
    span: 12,
  }, {
    fixed: false,
    label: '只读',
    prop: 'readOnly',
    type: 'switch',
    width: 90,
    editDisabled: false,
    search: false,
    formatter: function(row, column, cellValue, index){return cellValue?'是':'否'},
    span: 12,
  }, {
    label: '数据权限范围',
    prop: 'dataScopeLevel',
    value: '',
    type: 'select',
    "dicUrl": "/dict/itemList/dataScopeLevel",
    width: 160,
    span: 24
  }, {
    label: '主表名',
    prop: 'tableName',
    width: 150,
    value: '',
    hide: false,
    search: true,
    span: 24
  }, {
    label: 'From',
    prop: 'from',
    type: 'textarea',
    span: 24,
    width: 200,
    hide: false
  }, {
    label: 'Where',
    prop: 'where',
    type: 'textarea',
    span: 24,
    width: 200,
    hide: false
  }, {
    label: 'Group By',
    prop: 'groupBy',
    type: 'textarea',
    span: 24,
    width: 100,
    hide: false
  }, {
    label: 'Order By',
    prop: 'orderBy',
    span: 24,
    width: 100,
    hide: false
  }, {
    label: '备注',
    prop: 'remark',
    type: 'textarea',
    span: 24,
    width: 200,
    hide: false
  }]
}
export const fieldTableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  page:false,
  stripe: true,
  menuAlign: 'center',
  editBtn: false,
  delBtn: false,
  align: 'left',
  addBtn: true,
  height: 'auto',
  minHeight: 200,
	menu:false,
  //menuWidth: 0,
  searchBtn : false,
  columnBtn: false,
  refreshBtn: false,
  header:false,
  headerMenu:false,
  column: [{
    label: 'ID',
    prop: 'id',
  }, {
    label: '标签',
    prop: 'label'
  }, {
    label: '列语句',
    prop: 'column'
  }, {
    label: '默认值',
    prop: 'defaultValue'
  }, {
    label: '字段类型',
    prop: 'fieldType',
    type: 'select',
    dicUrl: '/dict/itemList/fieldType'
  }, {
    label: '主键',
    prop: 'keyField',
    type: 'switch',
    dicUrl: '/dict/itemList/boolean'
  }, {
    label: '必填字段',
    prop: 'required',
    type: 'switch',
    dicUrl: '/dict/itemList/boolean'
  }, {
    label: '精度',
    prop: 'precision',
    type: 'number',
    precision: 0
  }, {
    label: '字典ID',
    prop: 'dictId'
  }, {
    label: '多选字段',
    prop: 'multiValue',
    type: 'switch',
    dicUrl: '/dict/itemList/boolean'
  }, {
    label: '字典条件',
    prop: 'validation'
  }, {
    label: '树字典条件',
    prop: 'treeValidation',
    width: 150
  }, {
    label: '自定义搜索语句',
    prop: 'searchSql',
    width: 150
  }, {
    label: '最大长度',
    prop: 'maxLength',
    type: 'number',
    precision: 0
  }, {
    label: '最大值',
    prop: 'maxValue',
    type: 'number',
    precision: 0
  }, {
    label: '最小值',
    prop: 'minValue',
    type: 'number',
    precision: 0
  }]
}
